package Coffee.controller;

import Coffee.bean.Order;
import Coffee.dao.OrderDao;
import Coffee.dao.OrderDaoImpl;
import Coffee.service.UserService;
import Coffee.service.UserServiceImpl;

import java.util.List;

public class Test5 {
    public static void main(String[] args) {
       // UserService userService = new UserServiceImpl();
       // userService.payOrder("cb242f13937d48338b0ab974436c8e68","admin");
       // userService.getCoffee("cb242f13937d48338b0ab974436c8e68");
       // userService.repay("c3aa9c67c9ec415391f947212a9e24c3");
        OrderDao orderDao = new OrderDaoImpl();
        List<Order> admin = orderDao.queryOrderAdmin("admin");
        admin.iterator().forEachRemaining(System.out::println);
    }
}
